package com.itoffer.service;

import com.itoffer.pojo.ResumeBasicInfo;

public interface ResumeService {

    /**
     * 添加简历信息
     * @param basicInfo
     * @param applicant_id
     * @return
     */
   int addResume(ResumeBasicInfo basicInfo,int applicant_id);

    /**
     * 通过applicant_id查询是否有简历信息，有返回true,没有返回false
     * @param applicant_id
     * @return
     */
   boolean selectResumeByApplicant_id(int applicant_id);

    /**
     * 展示简历信息
     * @param basicinfo_id
     */
   ResumeBasicInfo selectCurrentResume(int basicinfo_id);


    /**
     * 根据登录信息中的applicant_id查询basicinfo表中的basicinfo_id
     * @param applicant_id
     * @return
     */
   int selectBasicinfo_idByApplicant_id(int applicant_id);


    /**
     * 更新头像
     * @param basicinfo_id
     * @param newFileName
     */
     void updatePicPath(int basicinfo_id, String newFileName);


    /**
     * 更新个人简历
     * @param basicInfo
     */
     boolean updateResume(ResumeBasicInfo basicInfo);
}
